/*
 * =====================================================================================
 *
 *       Filename:  1045.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2012/2/28 9:37:07
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =========================
 * ============================================================
 */
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include <stdio.h>

using namespace std;

int main(){
  float vs,r,c,w,vr,a;
  int n,i;
  cin>>vs>>r>>c>>n;
  for( i = 0; i < n; i++){
    cin>>w;
    a = c * r * w;
    vr = a*vs/sqrt(1+ a * a);
    printf("%.3f\n",vr);
  }
  return 0;
}

